package com.example.demo3.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("email")
public class EmailController {



    /**
     * 注入发送邮件的接口
     */
//    @Autowired
//    private EmailUtil mailService;

    /**
     * 测试发送文本邮件
     */
    @RequestMapping("mail")
    public void sendmail() {
//        mailService.sendSimpleMail("bnl1024@163.com","主题：你好普通邮件","内容：第一封邮件");
    }

    @RequestMapping("html")
    public void sendmailHtml(){
//        mailService.sendHtmlMail("xxx@qq.com","主题：你好html邮件","<h1>内容：第一封html邮件</h1>");
    }




}
